﻿@model FantasyBlog.DAL.User
@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_CPLayout.cshtml";
}
<h2>
    Edit</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<form name="form" id="form" action="/User/Edit" method="post">
<input type="hidden" name="userid" value="@Model.ID.ToString()"/>
<div>
    <p>
        <label>
            <b>displayname</b><br />
            <input type="text" name="displayname" value="@Model.displayname.ToString()"/>
        </label>
    </p>
</div>
<div>
    <p>
        <label>
            <b>email</b><br />
            <input type="text" name="email" value="@Model.email.ToString()"/>
        </label>
    </p>
</div>
<div>
    <p>
        <label>
            <b>registered</b><br />
            <input type="text" name="registered" value="@Model.registered.ToString()"/>
        </label>
    </p>
</div>
<div>
    <p>
        <label>
            <b>status</b><br />
            <input type="text" name="status" value="@Model.status.ToString()"/>
        </label>
    </p>
</div>
<p class="submit">
    <input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="Save"
        tabindex="100" />
</p>
</form>
@*@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>User</legend>

        @Html.HiddenFor(model => model.ID)

        <div class="editor-label">
            @Html.LabelFor(model => model.username)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.username)
            @Html.ValidationMessageFor(model => model.username)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.displayname)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.displayname)
            @Html.ValidationMessageFor(model => model.displayname)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.email)
            @Html.ValidationMessageFor(model => model.email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.registered)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.registered)
            @Html.ValidationMessageFor(model => model.registered)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.status)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.status)
            @Html.ValidationMessageFor(model => model.status)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}*@
<div>
    @Html.ActionLink("Back to List", "Index")
</div>
